package com.hyj.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hyj.service.AskersService;
import com.hyj.mapper.AskersMapper;
import com.hyj.entity.Askers;
import com.hyj.entity.Fenye;

@Service
public class AskersServiceImpl implements AskersService {
	@Autowired
	private AskersMapper askersmapper;

	// 分页查询所有用户信息
	@Override
	public Fenye<Askers> selectAllAskers(Fenye<Askers> fenye) {
		// TODO Auto-generated method stub
		Integer total = askersmapper.selectCountAskers(fenye);
		List<Askers> selectAllAskers = askersmapper.selectAllAskers(fenye);
		fenye.setTotal(total);
		fenye.setRows(selectAllAskers);
		return fenye;
	}

	// 修改员工分量的信息
	@Override
	public Integer updateWeights(Askers askers) {
		// TODO Auto-generated method stub
		return askersmapper.updateWeights(askers);
	}
}
